package com.codemonkey.lq.extend.excelverification.result;

import java.util.ArrayList;
import java.util.List;

public class VerifyResultGroup {
	private List<VerifyRowResult> list = new ArrayList<VerifyRowResult>();

	public void addVerifyRowResult(VerifyRowResult verifyRowResult) {
		list.add(verifyRowResult);
	}

	public String getDetail() {
		StringBuilder sb = new StringBuilder("######Result Group : ").append(System.lineSeparator());

		for (VerifyRowResult vrr : list) {
			sb.append(vrr.getDetail());
			sb.append(System.lineSeparator());
		}

		return sb.toString();
	}

	public String getPrompt() {
		StringBuilder sb = new StringBuilder("#####Result Group : ").append(System.lineSeparator());

		for (VerifyRowResult vrr : list) {
			sb.append(vrr.getPrompt());
			sb.append(System.lineSeparator());
		}

		return sb.toString();
	}
}
